#!/usr/bin/env bash
# 读取内容
# 小写字母转大写字母

# 打开调试模式
#set -x
echo 111

echo -n "Can you write device drivers?"
read answer

echo "您输入的内容：${answer}"
# 将 ${answer}中的 a-z 字母 转化为 A-Z的大写字母
answer=`echo ${answer}|tr [a-z] [A-Z]`
echo $answer
if [ ${answer} = Y ]; then
    echo "answer is yes"
fi
